package one2one;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Account implements Serializable {
	private Integer id;
	
	private String password;
	
	private Double balance;
	
	/** 包含一对一的关联实体 */
	private User user;

	/*
	 * setter and getter
	 */
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Double getBalance() {
		return balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}


}
